/*
 * @Author: ningyongheng ningyongheng@jeejio.com
 * @Date: 2024-04-23 15:41:43
 * @LastEditors: ningyongheng ningyongheng@jeejio.com
 * @LastEditTime: 2024-04-23 15:47:11
 * @FilePath: /background/src/inject/群脚本取平台判断.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

          to: {
              get() {
                  if (window?.JeeWeb?.OS !== 0x0b) {
                      return this._to;
                  }
                  debugger
                  // 判断global上面是否挂载，没有挂载，那么
                  let deviceBind = global?.appInfo?global?.appInfo.deviceBind[this.index]:appInfo.deviceBind[this.index];

                  // TODO:global?.appInfo?.deviceBind?.[this.index]判断一下，如果type是Single，取到第0个，否则，直接去all的数组：global?.appInfo?.deviceBind?.[this.index]?.devices
                  // @ts-ignore
                  return deviceBind.type == 'Single' ? deviceBind.devices[0] : deviceBind.devices;
                  // return global?.appInfo?.deviceBind?.[this.index]?.devices || global?.appInfo?.deviceList?.[this.index];
              },
          },
